package tenant_common

import "time"

type TenantConfig struct {
	OpenHost   string
	InnerHost  string
	OpenPort   string
	InnerPort  string
	DbName     string
	Username   string
	Password   string
	TenantCode string
}

func (p TenantConfig) TableName() string {
	return "tenant_product"
}

// Tenant  租户表
type Tenant struct {
	Id                string
	Code              string
	Name              string
	Email             string
	RentalStart       time.Time
	RentalEnd         time.Time
	Enabled           int32
	IsExtend          int32
	IsCreative        int32
	License           string
	PurchasedProducts string
	Creator           string
	CreatedTime       time.Time
	Modifier          string
	ModifiedTime      time.Time
}

func (p Tenant) TableName() string {
	return "tenant"
}
